export const changeTime = (time)=>{
    
    let prev = Date.now() - new Date(time).getTime();
    if(prev/1000/60/60/24>=1){
        return Math.round(prev/1000/60/60/24)+"天前";
    }else if(prev/1000/60/60>=1){
        return Math.round(prev/1000/60/60)+"小时前";
    }else{
        return Math.round(prev/1000/60)+"分钟前";
    }
}